# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=asciinema
pkgver=2.2.0
pkgrel=0
pkgdesc="Command line recorder for the asciinema.org service"
url="https://github.com/asciinema/asciinema"
arch="all"
license="GPL-3.0-or-later"
depends="python3 ncurses"
makedepends="py3-setuptools py3-wheel py3-build py3-installer"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/asciinema/asciinema/archive/v$pkgver.tar.gz"

build() {
	python3 -m build --no-isolation --wheel
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/asciinema-$pkgver-py3-none-any.whl

	install -Dm644 man/asciinema.1 "$pkgdir/usr/share/man/man1/asciinema.1"
}

sha512sums="
bed0b6a3228b973dddb2f03d0b0e16af0afd6e1c4c8c1379999d49b22ed658fed325f902f462156745631f98b51675565b7ea0011512c95c8b0b3bb09552bddc  asciinema-2.2.0.tar.gz
"
